﻿using System;
using System.Windows.Forms;

namespace Sparklings.LevelEditor
{
    public partial class NewLevelMessageBox : Form
    {
        public NewLevelMessageBox()
        {
            InitializeComponent();
            CancelButton = buttonCancel;
            AcceptButton = buttonCreate;
            buttonCreate.Click += delegate(Object sender, EventArgs e)
            {
                ((MainForm)Owner).SparklingsGameControl.NewLevel((int)numericUpDownX.Value, (int)numericUpDownY.Value);
                Close();
            };
        }
    }
}
